package com.sfd.message.remind.scheduled;

import cn.hutool.core.date.DateTime;
import com.sfd.message.remind.service.FestivalService;
import com.sfd.message.remind.service.UserRemindService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 定时提醒器
 *
 * @author haden
 * @date 2022/9/9 15:54
 **/
@Component
public class RemindScheduled {
    @Resource
    private UserRemindService userRemindService;


    //    @Scheduled(cron = "* 0/1 * * * ? ")
    @Scheduled(cron = "0/10 * * * * ? ")
    public void scheduled() {
        userRemindService.remind();
    }

}
